package GUI;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.*;

public class Storia extends JFrame{

	public Storia()
	{
		panel= new JPanel();
		label= new JLabel();
		button= new JButton("Partita Singola");
		button.setBounds(340,280,140,40);
		button1= new JButton("Partita Multigiocatore");
		button1.setBounds(330,350,160,40);
		button2= new JButton("Indietro");
		button2.setBounds(0,540,70,30);
		button2.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent arg0)
			{
				JFrame menu= new MainMenu();
				menu.setVisible(true);
				dispose();
			}
		});
		setTitle("Day Dreaming");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setResizable(false);
		setBounds(100,100,800,600);
		panel.setBorder(new EmptyBorder(0,0,0,0));
		setContentPane(panel);
		label.setBounds(0,0,0,0);
		label.setIcon(new ImageIcon("Immagini//Menu Iniziale//Sfondo1.jpg"));
		panel.add(label);
		label.add(button);
		label.add(button1);
		label.add(button2);
		}
	

	
	private JButton button;
	private JButton button1;
	private JButton button2;
	private JLabel label;
	private JPanel panel;
	
}
